package models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import play.db.jpa.Model;

@Entity
@Table(name = "donate_book")
public class DonateBook extends Model {

	@Column(name = "book_name",length=50)
	public String bookname ;
	
	@Column(name = "author",length=50)
	public String author ;
	
	@Column(name="gaddress",length = 150)
	public String gaddress ;
	
	@Column(name = "start_time")
	public Date starttime ;
	
	@Column(name = "end_time")
	public Date endtime ;
	
	@Column(name = "tel_phone",length=11)
	public String telphone;
	
	@Column(name = "mem_id")
	public Long memid ;
	
	@Column(name = "state")
	public int state ; //0.是上门取书1.自行邮寄
	
}
